﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Common;

namespace PublishingEditorServiceLibrary
{
    [ServiceContract]
    interface IPublishingEditorService
    {
        [OperationContract]
        Response GetArticlesFromPortfolio();
        [OperationContract]
        Response GetIssuePlans();
        [OperationContract]
        Response GetIssuePlanDetails(string issueID);
        [OperationContract]
        Response CreateIssuePlan(string title, DateTime publishDate);
        [OperationContract]
        Response RemoveIssuePlan(string issueID);
        [OperationContract]
        Response AddNewSectionToIssuePlan(string title, string description, string issueID);
        [OperationContract]
        Response RemoveSectionFromIssuePlan(string sectionID, string issueID);
        [OperationContract]
        Response AddArticleToSection(string sectionID, string articleID);
        [OperationContract]
        Response RemoveArticleFromSection(string sectionID, string articleID);
        [OperationContract]
        Response PublishIssue(string issueID);
        [OperationContract]
        Response GetSectionDetails(string sectionID);
        [OperationContract]
        Response GetIssueFiles(string issueID);
        [OperationContract]
        Response GetPublishedIssues();
    }
}
